package com.android.inestpin.model.member;

import com.android.inestpin.utils.MyLog;
import com.android.inestpin.utils.okhttp3.Callback;
import com.google.gson.Gson;


import okhttp3.Response;

/**
 * 自定义回调，每个bean都写一个
 * Created by wzq on 2016/9/1.
 */
public abstract class LoginResultDataCallbackWx extends Callback<LoginResultDataWx> {

    @Override
    public LoginResultDataWx parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        MyLog.e("inest","LoginResultDataCallbackWx="+string);

        LoginResultDataWx Login = new Gson().fromJson(string, LoginResultDataWx.class);
        return Login;
    }
}
